package
{
	import flash.events.MouseEvent;
	import flash.net.FileFilter;
	import flash.net.FileReference;
	
	import root.TestRoot;
	
	public class TestUpload extends TestRoot
	{
		public function TestUpload()
		{
			super();
			
			this.addEventListener(MouseEvent.CLICK, onClick);
		}
		
		public	function	onClick(evt:MouseEvent):void{
			var fileRef:FileReference = new FileReference();
			var filter:FileFilter = new FileFilter("image", "*.jpg;*.png;*.gif");
			var filterTxt:FileFilter = new FileFilter("txt", "*.txt");
			fileRef.browse([filter,filterTxt]);
		}
	}
}